package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 项目表
    */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`work`")
public class Work implements Serializable {
    @TableId(value = "work_no", type = IdType.INPUT)
    private Integer workNo;

    /**
     * 项目名称
     */
    @TableField(value = "work_name")
    private String workName;

    /**
     * 项目图标
     */
    @TableField(value = "work_icon")
    private String workIcon;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 创建人
     */
    @TableField(value = "create_user_id")
    private Integer createUserId;

    /**
     * 开始时间
     */
    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    private Date endTime;

    /**
     * 项目描述
     */
    @TableField(value = "work_detail")
    private String workDetail;

    /**
     * 0项目成员可见 1公开可见
     */
    @TableField(value = "is_private")
    private Integer isPrivate;

    /**
     * 关联客户
     */
    @TableField(value = "customer_ids")
    private String customerIds;

    /**
     * 关联商机
     */
    @TableField(value = "business_ids")
    private String businessIds;

    /**
     * 关联合同
     */
    @TableField(value = "contract_ids")
    private String contractIds;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 分组id
     */
    @TableField(value = "group_id")
    private Integer groupId;

    private static final long serialVersionUID = 1L;
}